package cn.bigcontainer.alt;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ConfigurableApplicationContext;

import cn.bigcontainer.alt.common.util.WoKit;

@SpringBootApplication
@MapperScan({"cn.bigcontainer.alt.meta.dao", "cn.bigcontainer.alt.meta.mapper", "cn.bigcontainer.alt.demo.mapper", "cn.bigcontainer.alt.sys.mapper", "cn.bigcontainer.alt.workflow.mapper"})
@EnableCaching
public class AltApp {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(AltApp.class, args);
        WoKit.setApplicationContext(context);
    }
}
